<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="bootstrap-3.3.7-dist/css/bootstrap.css" rel="stylesheet">
<script src="style/js/jquery-1.11.1.js"></script>
<script src="bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<style type="text/css">
.companies{
width:300px;
float:left;
margin:13px;
border:1px solid #d0d0d0;
border-radius:5px;
}

</style>
</head>
<body>
<div class="container-fluid">
	<div class="row-fluid">
		<div class="col-md-12 column">
		<button style="float:right;" onclick="javascript:location.href='logout.do'" class="btn btn-success" type="button">注销</button>
			<c:forEach var="company" items="${companies}">
				<div class="companies">
				<h2>
				${company.companyname}
				</h2>
				<p>
				${company.description}
				</p>
				<p>
					<button class="btn btn-info" type="button" onclick="javascript:alert('已提交申请!');location.href='applycompany.do?companyid=${company.companyid}'">申请加入</button>
				</p>
				</div>
			</c:forEach>
		</div>
	</div>
</div>
</body>
</html>